# Contributor: Nicolas Lorin <androw95220@gmail.com>
# Maintainer: Nicolas Lorin <androw95220@gmail.com>
pkgname=bgpq4
pkgver=1.15
pkgrel=0
pkgdesc="bgp filtering automation tool"
url="https://github.com/bgp/bgpq4"
arch="all"
options="!check" #no test suite
license="BSD-2-Clause"
makedepends="autoconf automake libtool"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/bgp/bgpq4/archive/refs/tags/$pkgver.tar.gz"

prepare() {
	default_prepare
	./bootstrap
}

build() {
	./configure \
		--host=$CHOST \
		--build=$CBUILD \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
61e7621baf0de9dc2375393affe5bcbe0a7494ce3edded90c05e60975c359b9b1322fb8a2ade5c91b720cecef363c293fb16fe426f29074d558148c4d68924a5  bgpq4-1.15.tar.gz
"
